package com.ykq.controller;

import com.ykq.service.DeptService;
import com.ykq.service.RoleService;
import com.ykq.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 闫克起
 * @Description:
 * @Date: Create in 9:14 2024/10/23
 */
@RestController
@RequestMapping("/dept")
public class DeptController {
    @Autowired
    private DeptService deptService;
    @GetMapping("/list")
    public R list(){
        return deptService.selectAll();
    }
}
